<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Home User index</title>
</head>
<body>
    <h1>Home User index</h1>
    <table border="1" width="800" cellspacing="0">
        <tr>
            <th>ID</th>
            <th>name</th>
            <th>age</th>
            <th>sex</th>
            <th>键</th> </tr>
        <?php if(is_array($list)): foreach($list as $k=>$vo): ?><tr>
            <td><?php echo ($vo["id"]); ?></td>
            <td><?php echo ($vo["name"]); ?></td>
            <td><?php echo ($vo["age"]); ?></td>
            <td>
                <?php if($vo["sex"] == '0'): ?>女
                <?php elseif($vo["sex"] == '1'): ?>男
                <?php else: ?>保密<?php endif; ?>
            </td>
            <td><?php echo ($k); ?></td>
        </tr><?php endforeach; endif; ?>
    </table>
</body>
</html>